package adke.gui.panels;

import adke.gui.Consistency;
import adke.models.ControlSet;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class ControlsPanel extends MarginPanel
{
    public ControlsPanel(ControlSet controls)
    {
        String text = "Left: " + controls.getLeftKeyText() + " | Right: " + 
                controls.getRightKeyText() + " | Power: " + controls.getPowerKeyText();
        JLabel label = new JLabel(text);
        label.setHorizontalAlignment(JLabel.CENTER);
        label.setFont(Consistency.getFont());
        add(label);
        
        // dit is het enige dat we erbij hoeven te doen om van margins gebruik te maken
        setMargins(10, 0);
    }
}
